package cn.school.mybatis.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

//对应s_subject表
public class Grade implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long id;
	private String gname;
	private List<Subject> subj;

	public List<Subject> getSubject() {
		return subj;
	}

	public void setSubject(List<Subject> subject) {
		this.subj = subject;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	@Override
	public String toString() {
		return "年级 [年级id=" + id + ", 年级名称=" + gname + "]\n";
	}

	public Grade(long id, String gname) {
		super();
		this.id = id;
		this.gname = gname;
	}

	public Grade(String gname) {
		super();
		this.gname = gname;
	}

	public Grade() {
		super();
	}

}
